package com.centaline.androidsalesblog.api;

import com.centaline.androidsalesblog.model.businissobject.SinaUserInfoBo;
import com.centanet.framework.interfaces.IResponseListener;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;

/**
 * 新浪登录用户信息
 * Created by guilin on 16/4/11.
 */
public class SinaUserInfoApi extends SinaOpenApi<SinaUserInfoBo> {

    private String uid;

    public SinaUserInfoApi(Class<?> tag, Oauth2AccessToken accessToken, Class<SinaUserInfoBo> aClass, IResponseListener<SinaUserInfoBo> iResponseListener) {
        super(tag, accessToken, aClass, iResponseListener);
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    protected void setParams() {
        putStringParams("access_token", accessToken.getToken());
        putStringParams("uid", uid);
    }

    @Override
    protected String getPath() {
        return "users/show.json";
    }
}
